package com.itqf.dao.impl;

import com.itqf.dao.UserDao;
import com.itqf.utils.DBUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/2 14:38
 * description:
 */
@Repository
public class UserDaoImpl implements UserDao {

    @Autowired
    private DBUtils dbUtils;
    /**
     * 登录dao方法
     *
     * @param username
     * @param password
     * @return
     */
    @Override
    public boolean query(String username, String password) {

        System.out.println("UserDaoImpl.query");
        System.out.println("username = " + username + ", password = " + password);

        boolean query = dbUtils.query(username, password);


        return query;
    }
}
